package com.jwsoft.manager.core.gateway.controller;

import com.bifang.engine.assistant.core.domain.AppResponse;
import com.jwsoft.manager.common.vo.eduStudentEnrollPre.EduStudentEnrollPreKeyVO;
import com.jwsoft.manager.common.vo.eduStudentEnrollPre.EduStudentEnrollPreVO;
import com.jwsoft.manager.core.integration.BatchCallSjgxIntegration;
import com.jwsoft.manager.core.integration.EduStudentEnrollBeforeJhIntegration;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 义务教育阶段预报名表网关
 *
 * @author wangtao
 * @since 2022-12-13
 */
@RestController
@RequestMapping(value = "/doc/api")
@Tag(name = "义务教育阶段预报名表-金华", description = "义务教育阶段预报名表")
public class EduStudentEnrollBeforeJhController {

    @Autowired
    public EduStudentEnrollBeforeJhIntegration eduStudentEnrollBeforeJhIntegration;
    @Autowired
    public BatchCallSjgxIntegration batchCallSjgxIntegration;

    @Operation(summary = "预报名管理查询预采集详情", description = "预报名管理查询预采集详情")
    @PostMapping(value = "/eduStudentEnrollBeforeJh0008", produces = "application/json;charset=UTF-8")
    public AppResponse<EduStudentEnrollPreVO> preList(@RequestBody EduStudentEnrollPreKeyVO vo) {
        return AppResponse.successData(eduStudentEnrollBeforeJhIntegration.getPreDetail(vo));
    }
}
